package com.chixing.day07.Day07_Test;

public class MainBoard {
    private IntelCpu intelCpu;
    private DmengVideoCard dmengVideoCard;

    public MainBoard(IntelCpu intelCpu, DmengVideoCard dmengVideoCard) {
        this.intelCpu = intelCpu;
        this.dmengVideoCard = dmengVideoCard;
    }

    public void run() {
        System.out.println("主板运行信息: ");
        intelCpu.cpuRunning();
        dmengVideoCard.videoRunning();
    }

    public void close() {
        System.out.println("主板停止信息: ");
        intelCpu.cpuClosing();
        dmengVideoCard.videoClosing();
    }
}